﻿@using MvcFront.Enums
@model MvcFront.DB.Document

@{
    ViewBag.Title = "Details";
}
    @Html.ValidationSummary(true)
<h2>Детальная информация</h2>
<fieldset>
@Html.DisplayForModel()
</fieldset>
<p>
    @if (!Model.IsReadOnly)
    {
        @Html.ActionLink("Редактировать", "EditDocument", new { id = Model.documentid }) <text>|</text>
    }
    @Html.ActionLink("Отмена", (Model.DocStatus != DocumentStatus.Submited ? "Index" : "SubmitedUserDocuments"))
</p>
